/** 
 * Project Name:sys-portal-Extjs 
 * File Name:TreeStore.js 
 * Package Name: 
 * Author : 吴Yuan|小森森
 * Date:2018年4月16日下午7:30:18 
 * Copyright (c) 2018, 15909910367@163.com All Rights Reserved. 
 * 
 */
Ext.define('Jason.store.protal.module.systemManager.right.organize.TreeStore', {
    extend: 'Ext.data.TreeStore',
    folderSort: false,
    remoteFilter: true,
    model: 'Jason.model.protal.module.systemManager.right.organize.OrganizeTreeModel',
    alias: 'store.rightOrganizeStoreByCommonTree',
    storeId: 'rightOrganizeStoreByCommonTree',
    root: {

    },
    autoLoad:true,
    proxy: {
        type: 'ajax',
        url: reqUrl.sys.organize.leftMenuV2,
        api: {
            read: reqUrl.sys.organize.leftMenuV2,
            create: reqUrl.sys.organize.create,
            update: reqUrl.sys.organize.update,
            destroy: reqUrl.sys.organize.destroy
        },
        reader: {
            totalProperty: 'total',
            successProperty: 'success'
        }
    },
    listeners:{
        beforeload : function(store,operation, eOpts){
            // Ext.apply(store.proxy.extraParams,{ //实现分页功能
            //     start: 0,
            //     limit: cfg.pageSize
            // });
        }
    }
})